//
//  UIButton+util.m
//  View_1
//
//  Created by 愤怒的振振 on 15-4-15.
//  Copyright (c) 2015年 LiuWeiZhen. All rights reserved.
//

#import "UIButton+util.h"

@implementation UIButton (util)

+ (UIButton *)buttonWithTitle:(NSString *)title frame:(CGRect)frame target:(id)target selector:(SEL)selector {
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    [button setTitle:title forState:UIControlStateNormal];
    button.frame = frame;
    [button addTarget:target action:selector forControlEvents:UIControlEventTouchUpInside];
    return button;
}

@end
